package com.lwlk.zdk.mapper.sys;

import com.lwlk.zdk.model.sys.sysUser;
import com.lwlk.zdk.model.sys.sysUserExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface sysUserMapper {
    int countByExample(sysUserExample example);

    int deleteByExample(sysUserExample example);

    int deleteByPrimaryKey(Integer platformId);

    int insert(sysUser record);

    int insertSelective(sysUser record);

    List<sysUser> selectByExample(sysUserExample example);

    List<Map<String,Object>> selectByPrimaryKey(Integer platformId);

    int updateByExampleSelective(@Param("record") sysUser record, @Param("example") sysUserExample example);

    int updateByExample(@Param("record") sysUser record, @Param("example") sysUserExample example);

    int updateByPrimaryKeySelective(sysUser record);

    int updateByPrimaryKey(sysUser record);

    int joinCount(@Param("roleType") String roleType);

    String selectAccessCode(@Param("platformId") Integer platformId);

    List<Map<String, Object>> searchUser(@Param("cityRole") String cityRole);

    List<Map<String, Object>> searchNotAdmin(@Param("cityRole") String cityRole);

    List<Map<String, Object>> searchJQ(@Param("roleType") String roleType);

    List<Map<String, Object>> searchFQ(@Param("roleType") String roleType);

    String searchPlatformId(@Param("platformId") int platformId);

    List<Map<String,Object>> searchAll();

    List<Map<String,Object>> searchChoice(sysUser sysUser);

    List<Map<String, Object>> selectAll(@Param("platformIds") Integer platformIds);

    int selectPlatform(@Param("roleType") String roleType);

    String selectPlatformIds(@Param("superiorAreaCode") String superiorAreaCode);

    List<Map<String, Object>> selectByAreaCode(@Param("areaCode") String areaCode);

    List<Map<String,Object>> selectOne(@Param("userName") String userName);

    String selectBypId(@Param("pId") Integer pId);

    String selectDimPlatformName(@Param("platformName") String platformName);

    int selectAccount(@Param("account") String account);

    List<Map> selectPlatformIdsList(@Param("pName") String pName);
}